const express=require('express')
const router=express.Router()
// 导入处理函数的模块
const user_handle=require('../router_handle/user')
// 导入验证数据中间件
const expressJoi=require('@escook/express-joi')
// 导入需要验证规则对象
const { reg_login_schema}=require('../schema/use')
router.post('/reguser', expressJoi(reg_login_schema) ,user_handle.regUser)
router.post('/login', expressJoi(reg_login_schema), user_handle.login)
module.exports = router;



